/* 哔哩哔哩风格全局样式 */
:root {
  --primary-color: #FB7299;
  --secondary-color: #23ADE5;
  --text-color: #212121;
  --text-secondary: #999999;
  --bg-color: #F5F5F5;
  --card-bg: #FFFFFF;
  --border-color: #EEEEEE;
  --hover-color: #FB729933;
  --bilibili-pink: #FB7299;
  --bilibili-blue: #23ADE5;
  --bilibili-purple: #9C27B0;
  --bilibili-green: #4CAF50;
  --bilibili-orange: #FF9800;
  --bilibili-red: #F44336;
}

/* 背景效果样式重置和优化 */
body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 确保背景效果不与内容冲突 */
#app {
  position: relative;
  z-index: 1;
}

/* 内容容器样式 - 确保在各种背景下清晰可读 */
.content-container {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  min-height: 100vh;
}

/* 主要内容包装器 */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 深色背景下的内容容器样式 */
.bg-effect.tech ~ #app .content-container,
.bg-effect.stars ~ #app .content-container,
.bg-effect.noise ~ #app .content-container {
  background: rgba(30, 30, 30, 0.95);
  color: #ffffff;
}

.bg-effect.tech ~ #app .content-wrapper,
.bg-effect.stars ~ #app .content-wrapper,
.bg-effect.noise ~ #app .content-wrapper {
  background: rgba(40, 40, 40, 0.95);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 删除不需要的动画 */

/* 动画背景类 */
.animated-background {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -9999 !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* 粒子效果容器 */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  animation: float 8s infinite ease-in-out;
  backdrop-filter: blur(2px);
}

/* 浮动动画 */
@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translate(100px, -100px) rotate(180deg);
    opacity: 0.6;
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
    opacity: 0.3;
  }
}

/* 鼠标交互光晕效果 */
.mouse-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 波浪效果 */
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100px;
  background: url('data:image/svg+xml,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="rgba(255, 255, 255, 0.1)" fill-opacity="1" d="M0,96L48,117.3C96,139,192,181,288,176C384,171,480,117,576,117.3C672,117,768,171,864,192C960,213,1056,203,1152,176C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  animation: wave-animation 15s linear infinite;
}

.wave:nth-child(2) {
  bottom: 5px;
  opacity: 0.5;
  background: url('data:image/svg+xml,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="rgba(255, 255, 255, 0.2)" fill-opacity="1" d="M0,160L48,154.7C96,149,192,139,288,149.3C384,160,480,192,576,213.3C672,235,768,245,864,218.7C960,192,1056,128,1152,122.7C1248,117,1344,171,1392,197.3L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  animation-delay: -5s;
}

@keyframes wave-animation {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 内容区域透明度调整 */
#app {
  position: relative;
  z-index: 1;
}

.main-content {
  position: relative;
  z-index: 2;
}

.header,
.mobile-nav {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

/* 顶部导航栏 */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  transition: all 0.3s ease;
}

.header:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.logo svg {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

/* 搜索框 */
.search-container {
  flex: 1;
  max-width: 400px;
  margin: 0 40px;
  position: relative;
}

.search-input {
  width: 100%;
  height: 36px;
  padding: 0 40px 0 15px;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background-color: var(--bg-color);
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  background-color: var(--card-bg);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--hover-color);
}

.search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
}

/* 顶部导航右侧菜单 */
.header-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 14px;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* 用户菜单和登录按钮 */
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color);
  overflow: hidden;
}

.user-avatar:hover {
  border-color: var(--primary-color);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  font-size: 16px;
  font-weight: bold;
  color: var(--primary-color);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 1001;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.user-menu:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 12px 20px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.dropdown-item:hover {
  background-color: var(--hover-color);
  color: var(--primary-color);
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 0;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  background-color: #E96385;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 114, 153, 0.3);
}

/* 登录模态框样式 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.modal-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-color);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 0 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: var(--card-bg);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--hover-color);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-color);
}

.form-checkbox label {
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.forgot-password {
  font-size: 14px;
  color: var(--secondary-color);
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  height: 44px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background-color: #E96385;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(251, 114, 153, 0.3);
}

.btn-login:disabled {
  background-color: var(--text-secondary);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.login-divider {
  display: flex;
  align-items: center;
  margin: 25px 0;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--border-color);
}

.login-divider span {
  padding: 0 15px;
  font-size: 14px;
  color: var(--text-secondary);
}

.social-login {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.social-btn {
  flex: 1;
  height: 40px;
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background-color: var(--bg-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.register-link {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.register-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.register-link a:hover {
  text-decoration: underline;
}

.error-message {
  color: #FF4D4F;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.form-group.error .error-message {
  display: block;
}

.form-group.error .form-input {
  border-color: #FF4D4F;
}

/* 主要内容区域 */
.main-content {
  margin-top: 80px;
  padding: 20px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* 分类导航 */
.category-nav {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 15px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
}

/* 个人主页样式 */
.profile-page {
  margin-top: 60px;
  background-color: var(--bg-color);
  min-height: calc(100vh - 60px);
}

.profile-header {
  background-color: var(--card-bg);
  position: relative;
}

.cover-photo {
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
  background-color: #e0e0e0;
}

.cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edit-cover-btn {
  position: absolute;
  right: 20px;
  bottom: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.edit-cover-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.user-info {
  display: flex;
  gap: 30px;
  padding: 20px 0 40px 40px;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.profile-avatar {
  position: absolute;
  top: -80px;
  left: 40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--card-bg);
  background-color: var(--card-bg);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar .avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--primary-color);
  background-color: var(--bg-color);
}

.edit-avatar-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
}

.edit-avatar-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.profile-details {
  margin-left: 140px;
  flex: 1;
}

#profileUsername {
  font-size: 32px;
  font-weight: bold;
  color: var(--text-color);
  margin: 10px 0;
}

#profileBio {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 600px;
}

.user-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 20px;
}

.stat-item {
  font-size: 16px;
  color: var(--text-color);
}

.stat-item strong {
  font-weight: bold;
  margin-right: 5px;
}

.profile-actions {
  display: flex;
  gap: 10px;
  align-self: flex-end;
}

.edit-profile-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.edit-profile-btn:hover {
  background-color: #E96385;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 114, 153, 0.3);
}

.profile-nav {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 60px;
  z-index: 900;
}

.profile-nav .container {
  display: flex;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.profile-nav-item {
  display: block;
  padding: 20px 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.profile-nav-item:hover {
  color: var(--primary-color);
}

.profile-nav-item.active {
  color: var(--primary-color);
}

.profile-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
}

.profile-content {
  display: flex;
  gap: 30px;
  padding: 30px 0;
}

.profile-main {
  flex: 3;
}

.profile-sidebar {
  flex: 1;
  min-width: 300px;
}

.user-activities {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.activity-header h2 {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-color);
  margin: 0;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.no-activities {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.info-card,
.recommended-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
}

.info-card h3,
.recommended-card h3 {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-color);
  margin: 0 0 20px 0;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 14px;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list li i {
  color: var(--text-secondary);
  font-size: 16px;
}

.info-list li span {
  color: var(--text-color);
  font-weight: 500;
}

.recommended-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* 页脚样式 */
.footer {
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
  padding: 40px 20px;
  margin-top: 40px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-logo {
  flex: 1;
  min-width: 200px;
}

.footer-logo h2 {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.footer-logo p {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-links {
  flex: 2;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-column {
  min-width: 150px;
}

.footer-column h4 {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 15px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--primary-color);
}

.footer-social {
  display: flex;
  gap: 15px;
  align-items: center;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .footer-content {
    flex-direction: column;
  }
  
  .footer-links {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0 10px;
  }
  
  .search-container {
    display: none;
  }
  
  .header-menu {
    gap: 10px;
  }
  
  .main-content {
    padding: 10px;
  }
  
  .profile-content {
    flex-direction: column;
  }
  
  .user-info {
    padding: 20px 0 40px 20px;
  }
  
  .profile-avatar {
    left: 20px;
    width: 120px;
    height: 120px;
    top: -60px;
  }
  
  .profile-details {
    margin-left: 100px;
  }
  
  #profileUsername {
    font-size: 24px;
  }
  
  .user-stats {
    gap: 20px;
  }
}
